<?php
    require_once("global.php");

    $ownerid = $_POST['ownerid'];
    $userid = $_POST['userid'];
    $username = $_POST['username'];
    $appname = $_POST['appname'];
    $dirname = $_POST['dirname'];
    $client = $_POST['client'];
    $sourcefile = $_POST['source'];
    $targetfile = $_POST['target'];
    $content = $_POST['content'];
    $optime = $_POST['optime'];
   
    $result = oplog($ownerid, $userid, addslashes($username), addslashes($appname), addslashes($dirname), addslashes($client), addslashes($sourcefile), addslashes($targetfile), addslashes($content), $optime);
  
    if ($result)
    {
        echo '{"result":"ok"}';
    }
    else
    {
        echo '{"result":"failed"}';
    }
?>
